/* Class86 - Decompiled by JODE
 * Visit http://jode.sourceforge.net
 */
public class Class86 {
    public static JString aJString_1576;
    public static int[] anIntArray1577;
    public static JS5 aClass15_1578;
    public static Class30 aClass30_1579;
    public static int anInt1580;
    public static JString aJString_1581 = Class37_Sub2.method332((byte) 114,
            "mapedge");
    public static int anInt1582;
    public static int anInt1583 = 1;

    static {
        aJString_1576 = Class37_Sub2.method332((byte) 119, "m");
        anIntArray1577 = new int[128];
    }

    public static void method1323(byte i, JString jstring, boolean bool) {
        jstring = jstring.toLowerCase(12131);

        if (i < 88) {
            anIntArray1577 = null;
        }

        anInt1580++;

        short[] is = new short[16];
        int i_0_ = 0;

        for (int i_1_ = 0; i_1_ < Login.anInt788; i_1_++) {
            ItemDef itemdef = Class46.method1108(i_1_,
                    (byte) 127);

            if ((!bool || itemdef.aBoolean2421) &&
                    (itemdef.aJString_2458.toLowerCase(12131)
                                                        .indexOf(jstring) != -1)) {
                if ((i_0_ ^ 0xffffffff) <= -101) {
                    Class37_Sub10.anInt1980 = -1;
                    Class78.aShortArray1459 = null;

                    return;
                }

                if ((i_0_ ^ 0xffffffff) <= (is.length ^ 0xffffffff)) {
                    short[] is_2_ = new short[2 * is.length];

                    for (int i_3_ = 0; i_0_ > i_3_; i_3_++)
                        is_2_[i_3_] = is[i_3_];

                    is = is_2_;
                }

                is[i_0_++] = (short) i_1_;
            }
        }

        RSApplet.anInt172 = 0;
        Class37_Sub10.anInt1980 = i_0_;

        int i_4_ = i_0_;
        Class78.aShortArray1459 = is;

        while ((i_4_ ^ 0xffffffff) < -1) {
            boolean bool_5_ = true;
            i_4_--;

            for (int i_6_ = 0; i_4_ > i_6_; i_6_++) {
                ItemDef itemdef = Class46.method1108(is[i_6_],
                        (byte) 89);
                ItemDef itemdef_7_ = Class46.method1108(is[i_6_ -
                        -1], (byte) 81);

                if (itemdef.aJString_2458.compareString(
                            itemdef_7_.aJString_2458, 10303) > 0) {
                    bool_5_ = false;

                    short i_8_ = is[i_6_];
                    is[i_6_] = is[i_6_ - -1];
                    is[i_6_ - -1] = i_8_;
                }
            }

            if (bool_5_) {
                break;
            }
        }
    }

    public static void method1324(byte i) {
        aClass30_1579 = null;
        aJString_1581 = null;

        if (i != -108) {
            method1323((byte) -7, null, true);
        }

        anIntArray1577 = null;
        aJString_1576 = null;
        aClass15_1578 = null;
    }
}
